<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

<!-- Bootstrap -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/resource/css/bootstrap.min.css">
<link rel="stylesheet"
	href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]-->
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<!--[endif]-->
<title></title>
</head>
<body>
	<div class="container">
		<nav>
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active"><a href="#management"
					aria-controls="" role="tab" data-toggle="tab">添加子类</a></li>
			</ul>
		</nav>
	</div>

	<div class="tab-pane" role="tabpanel" id="#management">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">分类详细设置</h3>
			</div>
			<div class="panel-body">
				<div class="container-fluid">
					<sf:form class="form-horizontal" method="post"
						modelAttribute="childrenType"
						action="saveOrUpdatetype?num=${parentType.id}">
						<sf:input class="form-control" type="hidden"
							placeholder="${childrenType.id}" path="id" />
						<sf:input class="form-control" type="hidden"
							placeholder="${childrenType.version}" path="version" />
						<div class="form-group">
							<label for="firstName" class="control-label col-lg-2">上级分类</label>
							<div class="col-lg-9">
								<input class="form-control" type="text" readonly="readonly"
									placeholder="${parentType.typeName}" id="firstName" />
							</div>
						</div>
						<div class="form-group">
							<label for="order" class="control-label col-lg-2">排序</label>
							<div class="col-lg-9">
								<sf:input class="form-control" type="text" id="order"
									path="order" placeholder="${childrenType.order}" />
							</div>
						</div>
						<div class="form-group">
							<label for="typeName" class="control-label col-lg-2">分类名称</label>
							<div class="col-lg-9">
								<sf:input class="form-control" type="text" id="typeName"
									path="typeName" placeholder="${childrenType.typeName}" />
							</div>
						</div>
						<div class="form-group">
							<label for="description" class="control-label col-lg-2">分类描述</label>
							<div class="col-lg-9">
								<sf:textarea class="form-control" type="" id="description"
									path="description" placeholder="${childrenType.description}" />
							</div>
						</div>
						<div class="form-control-static col-lg-3 col-lg-offset-5">
							<input type="submit" class="btn btn-success btn-lg" value="提交">
						</div>
					</sf:form>
				</div>
			</div>
		</div>
	</div>

	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script
		src="${pageContext.request.contextPath}/resource/js/jquery.min.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script
		src="${pageContext.request.contextPath}/resource/js/bootstrap.min.js"></script>
</body>
</html>